package com.glodon.paas.document.dao;

import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.glodon.paas.document.dao.domain.ProjectMemberEntity;

/**
 * @author admin
 */
public interface ProjectMemberDao extends DBDao<ProjectMemberEntity, String> {

    static Logger logger = LoggerFactory.getLogger(ProjectMemberDao.class);

    List<ProjectMemberEntity> getMembers(String projectId, String roleId);

    int updateDefaultRole(String projectId, String roleId);

    boolean acceptMember(String userId, String token);

    boolean rejectMember(String id);

    boolean updateMemberStatus(String id, int status);

    int updateRoleOfMember(String memberId, String projectId, String oldRoleId, String newRoleId);
    ProjectMemberEntity getMember(String projectId,String roleId,String accountId,String orgId);
    List<ProjectMemberEntity> getAddedOrgs(String projectId,String roleId);
}
